diff options
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 23 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..4ceff319 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenFieldLoadTests]/[method:canGenerateCodeForStructFieldLoad(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + + +Locals: + * (val "tmp__id__0" int) + * (val "structValuePointer__0" data-ptr) + +Instructions: + +( + (int-to-data-ptr (local "structValuePointer__0") (local "b")) + ( + memory-load + (local "tmp__id__0") + pointer=(local "structValuePointer__0") + layout=(struct (int int int)) + offset=(1) + ) +) + +Temporary stack: + * tmp__id__0 + * a |
